package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.State.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.State.Model.Person;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.State.Model.HappyState;

public class PersonFactory 
{
    private static Person person = null;

    public static Person createPerson(HappyState happyState)
    {
        if( person == null)
            person = new Person(happyState);
        return person;
    }   
}